package com.yatang.yiliao.app.activities;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import com.yatang.yiliao.app.Constants;
import com.yatang.yiliao.app.R;


public class ProtocolActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_protocol);

    }
    public void btnAcceptProtocol(View view){
        SharedPreferences sp = getSharedPreferences(Constants.APP_DATA,MODE_PRIVATE);
        SharedPreferences.Editor edit = sp.edit();
        edit.putBoolean(Constants.APP_IS_ACCEPT_PROTOCOL,true);
        edit.commit();
        finish();
    }
}
